package chamster.actions;

import chamster.BaseHamster;

public class ForewardAction<HamsterType extends BaseHamster> 
	implements HamsterAction<HamsterType> {

	public boolean isApplicable(HamsterType hamster) throws Exception {
		return hamster.canMoveForeward() && hamster.chargeLeft(1);
	}

	public void run(HamsterType hamster) throws Exception {
		hamster.foreward();
	}
	
}
